package org.hy.persistence.profile;

import java.util.List;

import org.hy.domain.profile.Education;

public interface EducationMapper {
	Education findEducationById(Integer id);
	
	List<Education> findEducationByIds(Integer[] ids);
	
	/**
	 * 增加教育背景
	 * @param education
	 * @return 成功为1，否者为0
	 */
	int insertEducation(Education education);
	
	/**
	 * 更新教育背景
	 * @param education
	 * @return 成功为1，否者为0
	 */
	int updateEducation(Education education);
	
	/**
	 * 删除教育背景
	 * @param education
	 * @return 成功为1，否者为0
	 */
	int deleteEducation(int id);
}
